package com.techsoul.module.order.task;

import com.techsoul.common.core.pojo.vo.UserVo;
import com.techsoul.common.core.util.spring.SpringUtils;
import com.techsoul.module.order.pojo.param.SalesOrderItemSaveParam;
import com.techsoul.module.order.service.ISalesOrderService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;
import java.util.TimerTask;

/**
 * 异步工厂
 *
 * @author liuen
 */
@Slf4j(topic = "sales-order")
public class SalesOrderAsyncFactory {

    public static TimerTask generateQuote(final String orderId, final List<SalesOrderItemSaveParam> items, final UserVo user) {
        return new TimerTask() {
            @Override
            public void run() {
//                SpringUtils.getBean(ISalesOrderService.class).generateQuote(orderId, items, user);
            }
        };
    }

}
